﻿<%@ Page Title="Gerenciar Jornadas de Curso" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true"
    CodeBehind="Jornada_Listar.aspx.cs" Inherits="ProjetoJornada.Interno.Jornada_Listar" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../javascript/menu_dropdown.js" type="text/javascript"></script>

    <link href="../CSS/cadastro.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 151px;
        }
        .style2
        {
            width: 202px;
        }
        .style3
        {
            width: 120px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView_Jornadas" runat="server" AutoGenerateColumns="False" CellPadding="3"
        ForeColor="Black" GridLines="Vertical" BackColor="White" BorderColor="#999999"
        BorderStyle="Solid" BorderWidth="1px" OnRowDeleting="GridView_Jornadas_RowDeleting">
        <Columns>
            <asp:BoundField AccessibleHeaderText="Nome" DataField="Nome" HeaderText="Nome" NullDisplayText="-" />
            <asp:BoundField AccessibleHeaderText="DataInicial" DataField="DataInicial" HeaderText="Data inicial"
                NullDisplayText="-" DataFormatString="{0:dd/MM/yyyy}" />
            <asp:BoundField AccessibleHeaderText="DataFinal" DataField="DataFinal" HeaderText="Data final"
                NullDisplayText="-" DataFormatString="{0:dd/MM/yyyy}" />
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='<%#"Jornada_Editar.aspx?id=" + Eval("Id")%>' style="text-align: center;">
                        <asp:Image ID="imgEdit" runat="server" BorderStyle="None" ImageUrl="../imagens/edit.png" />
                    </a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="center" />
            </asp:TemplateField>
            <asp:CommandField ShowDeleteButton="True" ButtonType="Image" DeleteImageUrl="~/imagens/delete.png"
                DeleteText="" />
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#CCCCCC" />
    </asp:GridView>
</asp:Content>
